package com.emep.changzhi.analyse.entity.basics;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Wangcc
 * @version V1.0
 * @Description: 因子信息表
 * @date 2018/2/26 11:50
 */
@Data
@Table(name = "sys_factor_info")
@Entity
public class SysFactorInfo implements Serializable {

    private static final long serialVersionUID = 2018289472770876892L;


    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String  id;

    @Column(name = "factor_shrink",columnDefinition="varchar(100) COMMENT '因子简称'" )
    private String  factorShrink;

    @Column(name = "factor_name",columnDefinition="varchar(100) COMMENT '因子名字'" )
    private String  factorName;

    @Column(name = "factor_actual_name",columnDefinition="varchar(100) COMMENT '因子实际名称'" )
    private String  factorActualName;

    @Column(name = "factor_type",columnDefinition="varchar(100) COMMENT '因子类型'" )
    private String  factorType;

    @Column(name = "factor_status",columnDefinition="varchar(100) COMMENT '因子状态'" )
    private String  factorStatus;

    @Column(name = "factor_si",columnDefinition="varchar(100) COMMENT '因子单位'" )
    private String  factorSi;

    @ManyToOne
    @JoinColumn(name = "emission_standard_fine_id",columnDefinition="varchar(100) COMMENT '细则id'" )
    private SysEmissionStandardFineInfo  standardFineInfo;

    @Column(name = "real_shrink",columnDefinition="varchar(100) COMMENT '实时简称'" )
    private String  realShrink;

    @Column(name = "minute_shrink",columnDefinition="varchar(100) COMMENT '分钟简称'" )
    private String  minuteShrink;

    @Column(name = "hour_shrink",columnDefinition="varchar(100) COMMENT '小时简称'" )
    private String  hourShrink;

    @Column(name = "day_shrink",columnDefinition="varchar(100) COMMENT '日简称'" )
    private String  dayShrink;

    @Column(name = "is_pollutant",columnDefinition="varchar(100) COMMENT '是否是污染物'" )
    private String  isPollutant;

    @Column(name = "is_delete",columnDefinition="varchar(100) COMMENT '删除状态'" )
    private String  isDelete = "0";

    @Column(name = "createDate",columnDefinition="varchar(100) COMMENT '信息录入时间'" )
    private String  createDate = String.valueOf(System.currentTimeMillis());


}
